/*
 * @Author: FMC
 * @Date: 2024-07-07 21:27:44
 * @LastEditors: FMC
 * @LastEditTime: 2024-07-11 00:24:56
 * @FilePath: \three-run-game\src\common\material\material.js
 * @Description: 
 */
import * as THREE from "three";
// 关闭three.js色彩管理的传统模式，解决通过three.js创建的材质，注入到
// r3f组件中的色差问题
THREE.ColorManagement.legacyMode = false;

/**
 * 地面材质1
 */
export const shadedGround1Material = new THREE.MeshStandardMaterial({
  color: "#111111",
  metalness:0,
  roughness:0
});

/**
 * 地面材质2
 */
export const shadedGround2Material = new THREE.MeshStandardMaterial({
  color: "#222222",
  metalness:0,
  roughness:0
});

/**
 * 障碍物材质
 */
export const shadedObstacleMaterial = new THREE.MeshStandardMaterial({
  color: "#ff0000",
  metalness:0,
  roughness:1
});

/**
 * 墙壁材质
 */
export const shadedWallMaterial = new THREE.MeshStandardMaterial({
  color: "#887777",
  metalness:0,
  roughness:0
});
